<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>作业2</title>
    <script type="text/javascript">
    function OpenWindow(){
        window.open("http://www.csdn.net","打开新窗口","height=500,width=600");
    }
    </script>
</head>
<body>
    <a href="http://www.csdn.net" target="main">打开新窗口</a>    
</body>
</html>